import request from '@/utils/newrequest'
const group_name = 'agent'
export default {

    getList(currentPage,pageSize) {
        return request({
          url: `/${group_name}/?currentPage=${currentPage}&pageSize=${pageSize}`,
          method: 'get',
          
        })
      },

      getFocus(currentPage, pageSize,uid) {
        return request({
          url: `/order/?agentId=${uid}&currentPage=${currentPage}&pageSize=${pageSize}`,
          method: 'get',
          // data:{userId:uid}
        })
      },

      updateOrder(order){
        console.log(order);
        return request({
          url: `/order`,
          method: 'put',
          data:order,
          // data:{userId:uid}
        })

      },

      removeOrder(order){
        console.log(order);
        return request({
          url: `/order`,
          method: 'delete',
          data:order,
          // data:{userId:uid}
        })

      },

}